package benchMark;

import anaydis.sort.gui.SorterListener;

/**
 * Created by IntelliJ IDEA.
 * User: Tomi
 * Date: 24/08/2011
 * Time: 15:10:08
 * To change this template use File | Settings | File Templates.
 */
public class BenchMark implements SorterListener {
    private int comparisons, swaps;
    public BenchMark(){
        comparisons = swaps = 0;
    }
    public void greater(int i, int i1) {
        comparisons++;
    }
    public void equals(int i, int i1) {
        comparisons++;
    }
    public void swap(int i, int i1) {
        swaps++;
    }
    public void box(int i, int i1) {
        //To change body of implemented methods use File | Settings | File Templates.
    }
    public void copy(int i, int i1, boolean b) {
        //To change body of implemented methods use File | Settings | File Templates.
    }
    public void resetAll(){
        comparisons = swaps = 0;
    }
    public int getComparisons() {
        return comparisons;
    }
    public int getSwaps() {
        return swaps;
    }
}